package com.zwy.linear;

public interface Strategy {
    //判断两个元素是否相等
    public boolean equal(Object obj1,Object obj2);

    /**
     * 比较两个元素的大小
     * @param obj1
     * @param obj2
     * @return 如果obj1<obj2,返回-1,如果obj1=obj2,返回obj1>obj2返回1
     */
    public int compare(Object obj1,Object obj2);
}